<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north',border:false" style=" height:45px;padding:5px;border-bottom:1px solid #95B8E7;">
        <div style="float:left; padding:4px 0 0;">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-back'" onclick="$('#main-tab').tabs('select', '已发送')">返回</a>
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-redo'" onclick="email_add_again('1','<?php echo $incontentview[0]->bodyid;?>')">再次发送</a>
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="del_email_content('<?php echo $incontentview[0]->bodyid;?>','sent')">删除</a>
        </div>
        <div style="float:right; padding:3px;">
        	<a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'pagination-prev'" onclick="up_down_row('u','sent');"></a>
        	<a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'pagination-next'" onclick="up_down_row('n','sent');"></a>
        </div>
    </div>
    <div data-options="region:'center',border:false" style="padding:0;-moz-user-select:text; -webkit-user-select:text; -ms-user-select:text; -khtml-user-select:text; user-select:text;">
    	<div style="padding:6px; border-bottom:1px solid #95B8E7;">  
        	<div style="margin:5px;font-size:15px;font-weight: 700;"><?php echo $incontentview[0]->title;?></div>           
            <div style="margin:5px;font-size: 12px; font-family:微软雅黑;">发件人：<span><?php echo $incontentview[0]->sender;?></span></div>
            <div style="margin:5px;font-size: 12px; font-family:微软雅黑;">收件人：<span><?php echo $incontentview[0]->addressee2;?></span></div>
            <?php
            if($incontentview[0]->cc != ''){
				echo "<div style='margin:5px;font-size: 12px; font-family:微软雅黑;'>抄送人：<span>".$incontentview[0]->cc."</span></div>";
			}
			?>
            <div style="margin:5px;font-size: 12px; font-family:微软雅黑;">时间：<?php echo $incontentview[0]->sendertime;?></div>
        </div>
        <div style="padding:12px;"><iframe id="email_iframe_sent_content_<?php echo $incontentview[0]->bodyid;?>" frameborder="0" style="width:100%;height:50px;" scrolling="no" onload=' this.style.height=Math.max(this.contentWindow.document.body.scrollHeight,this.contentWindow.document.documentElement.scrollHeight,50)+"px";'></iframe></div>
        <div style="padding:12px;">
        	<?php echo $attlist;?>	
    	</div>
    </div>
</div>
<script>
//重新渲染附件列表和右键事件
bing_eattl_fun('<?php echo 'emailsent'.$incontentview[0]->bodyid;?>');

//这里使用框架，是为了内容中的样式不至于影响页面元素。SRC属性不再iframe元素中指定，而在声明之后单独赋值是因为：iframe中的src带参数会导致两次执行
document.getElementById("email_iframe_sent_content_<?php echo $incontentview[0]->bodyid;?>").src = "<?php echo base_url().'email/get_email_content/sent/'.$incontentview[0]->bodyid;?>";
</script>
